package me.luger.project.picc.service;

import me.luger.core.dao.nutz.service.BaseService;
import org.nutz.dao.Cnd;
import org.nutz.dao.Dao;
import me.luger.project.picc.entity.LearnHealth;
import org.springframework.stereotype.Repository;

@Repository
public class LearnHealthService extends BaseService<LearnHealth> {
    public LearnHealthService(Dao dao) {
        super(dao);
    }

    public LearnHealth fetchByOpenId(String openId){
        LearnHealth learnHealth = this.fetchOne(Cnd.where("openId","=",openId));
        return learnHealth;
    }
}
